import React from 'react';
import { Divider } from 'antd';

export default function Comp() {
  return (
    <div className="comp">
      <ClassComp />
      <Divider />
      <FuncComp />
      <Divider />
    </div>
  );
}

class ClassComp extends React.Component {
  componentDidMount(): void {
    // ApiFilled.getList().then(res => this.setState())
  }
  // handleClick = () => {};
  render() {
    return <div className="class-comp">ClassComp</div>;
  }
}

function FuncComp() {
  return <div className="func-comp">FunctionComp</div>;
}
